﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Kevin.Framework.Data.OrmMapping
{
    [AttributeUsage(AttributeTargets.Property, Inherited = false, AllowMultiple = false)]
    public class AutoIncrementAttribute : System.Attribute
    {
        /// <summary>
        /// 缺省构造函数
        /// </summary>
        public AutoIncrementAttribute()
        {
            this.SequenceName = "";
        }
        /// <summary>
        /// 根据序列构造函数,主要为Oracle数据表列绑定序列服务的
        /// </summary>
        /// <param name="sequenceName">Oracle序列名称</param>
        public AutoIncrementAttribute(string sequenceName)
        {
            this.SequenceName = sequenceName;
        }

        /// <summary>
        /// 序列属性,主要为Oracle数据表列绑定序列服务的
        /// </summary>
        public string SequenceName
        {
            get;
            set;
        }
    }
}
